package com.dyjch.mly.service.imp;


import com.dyjch.mly.entity.GoodsBound;
import com.dyjch.mly.mapper.GoodsManagerMapper;
import com.dyjch.mly.service.GoodsManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsManagerServiceImp implements GoodsManagerService {

    @Autowired
    GoodsManagerMapper goodsManagerMapper;

    @Override
    public GoodsBound queryGoodsByName(String name) {
        return goodsManagerMapper.queryGoodsByName(name);
    }

    @Override
    public List<GoodsBound> getAllMessage() {
        return goodsManagerMapper.getAllMessage();
    }

    @Override
    public void updateWithNumber(String name, int number) {
        goodsManagerMapper.updateWithNumber(name,number);
    }

    @Override
    public void addGoods(GoodsBound goodsBound) {
        goodsManagerMapper.addGoods(goodsBound);
    }

    @Override
    public void deletGoodsByName(String name) {
        goodsManagerMapper.deletGoodsByName(name);
    }
}
